import { BasePlugin } from "./BasePlugin";
import { UpdateGenUtil } from "../util/UpdateGenUtil";
import { UpdateDebug2ReleaseUtil } from "../util/UpdateDebug2ReleaseUtil";
export class UpdateDebug2Release extends BasePlugin {
    getName(): string {
        return "热更新测试切正式";
    }    
    getDesc(): string {
        return "传入平台名，和ios|android，例如UpdateDebug2Release dev android";
    }
    do(args: string[], cb:()=>void): void {
        let iosOrAndroid : "ios"|"android" = "android";
        if (args[1] == "ios") {
            iosOrAndroid = "ios";
        }
        UpdateDebug2ReleaseUtil.exec(args[0], iosOrAndroid, ()=>{
            console.log("UpdateDebug2ReleaseUtil ok");
            cb();
        })
    }

}